package com.example.demo.entity;

public class GoodsDetail {
    private String goodsId;
    private String businessId;
    private String imageUrl;
    private String title;
    private float price;
    private int duration;
    private String specification;
//    private String[] detailImages;
    //这个属性不在构造器中初始化
    private String logoUrl;
    private String shopName;
    private int goodsGroup;
    private int goodsClass;
    private boolean discount;
    private float discount_price;
    private String timestamp;
    private String[] labels;

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }


    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public int getGoodsGroup() {
        return goodsGroup;
    }

    public void setGoodsGroup(int goodsGroup) {
        this.goodsGroup = goodsGroup;
    }

    public int getGoodsClass() {
        return goodsClass;
    }

    public void setGoodsClass(int goodsClass) {
        this.goodsClass = goodsClass;
    }

    public boolean isDiscount() {
        return discount;
    }

    public void setDiscount(boolean discount) {
        this.discount = discount;
    }

    public float getDiscount_price() {
        return discount_price;
    }

    public void setDiscount_price(float discount_price) {
        this.discount_price = discount_price;
    }

    public String[] getLabels() {
        return labels;
    }

    public void setLabels(String[] labels) {
        this.labels = labels;
    }

    public int getStorage() {
        return storage;
    }

    public void setStorage(int storage) {
        this.storage = storage;
    }

    public GoodsDetail(String goodsId, String businessId, String imageUrl, String title, float price, int duration, String specification, String logoUrl, String shopName, int goodsGroup, int goodsClass, boolean discount, float discount_price, String timestamp, int storage) {
        this.goodsId = goodsId;
        this.businessId = businessId;
        this.imageUrl = imageUrl;
        this.title = title;
        this.price = price;
        this.duration = duration;
        this.specification = specification;
        this.logoUrl = logoUrl;
        this.shopName = shopName;
        this.goodsGroup = goodsGroup;
        this.goodsClass = goodsClass;
        this.discount = discount;
        this.discount_price = discount_price;
        this.timestamp = timestamp;
        this.storage = storage;
    }

    private int storage;

//    storage?:number = 0//储存方式，0代表低温，1代表常温

    @Override
    public String toString() {
        return "goodsId:"+this.goodsId+",businessId:"+this.businessId+",imgUrl:"+this.imageUrl+",title:"+this.title
                +",price:"+this.price+",duration:"+this.duration+",specification:"+this.specification+",logoUrl:"+
                this.logoUrl+",shopName:"+this.shopName+",goodsGroup:"+this.goodsGroup+"goodsClass:"+this.goodsClass
                +"discount:"+this.discount+",discount_price:"+this.discount_price+",storage:"+this.storage;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }
}
